package org.dromara.xhlj.domain.vo;

import org.dromara.xhlj.domain.XhljNews;
import org.dromara.xhlj.domain.XhljConferenceInfo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.dromara.common.core.utils.tree.TreeCruxField;
import org.dromara.wx.domain.WxUser;
import org.dromara.wx.domain.vo.WxUserVo;
import org.dromara.system.domain.SysUser;
import org.dromara.system.domain.vo.SysUserVo;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 大会新闻视图对象 xhlj_news
 *
 * @author yf
 * @date 2024-07-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = XhljNews.class)
public class XhljNewsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 新闻id
     */
    @ExcelProperty(value = "新闻id")
    private Integer newsId;
    /**
     * 新闻标题
     */
    @ExcelProperty(value = "新闻标题")
    private String newsTitle;
    /**
     * 大会id
     */
    @ExcelProperty(value = "大会id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = XhljConferenceInfo.TRANS_ID_TO_VO, mapper = "conferenceInfoId")
    private XhljConferenceInfoVo conferenceInfo;
    private Integer conferenceInfoId;
    /**
     * 创建人sys_user（大会管理员/活动负责人）
     */
    @ExcelProperty(value = "创建人sys_user")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = SysUser.TRANS_ID_TO_VO, mapper = "createBy")
    private SysUserVo sysUser;
    private Integer createBy;
    /**
     * 新闻内容
     */
    @ExcelProperty(value = "新闻内容")
    private String newsContent;
    /**
     * 新闻地点
     */
    @ExcelProperty(value = "新闻地点")
    private String newsLocation;
    /**
     * 新闻图片
     */
    @ExcelProperty(value = "新闻图片")
    private String newsImage;
    /**
     * 新闻图片描述
     */
    @ExcelProperty(value = "新闻图片描述")
    private String newsDescription;
    /**
     * 新闻视频
     */
    @ExcelProperty(value = "新闻视频")
    private String newsVideoFile;
    /**
     * 新闻视频描述
     */
    @ExcelProperty(value = "新闻视频描述")
    private String newsVideoDescription;
    /**
     * 新闻标签（0=网络安全，1=AI人工智能，2=物联网安全）
     */
    @ExcelProperty(value = "新闻标签", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "new_tags")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "new_tags", mapper = "newTags")
    private String newTagsDictData;
    private String newTags;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;
}
